package com.edgar.download.database;

import android.provider.BaseColumns;

/**
 * Created by dell on 2015/9/24.
 */
public final class Downloads {

    /**
     * 基本下载表
     */
    public static interface DownloadImpl extends BaseColumns{
        public static final String TAB_NAME = "t_download";

        public static final String DOWNLOAD_URL = "download_url"; //下载地址
        public static final String SAVE_PATH = "save_path";  //本地保存的路径
        public static final String STATUS = "status";   //下载状态
        public static final String PROGRESS = "progress";  //下载进度
        public static final String SIZE = "total_size";   //文件总大小
        public static final String CURRENT_SIZE = "current_size"; //已下载大小
        public static final String NAME = "name";   //下载名称
        public static final String DATE = "date";   //下载日期
        public static final String CONTENT_TYPE = "content_type"; //内容类型
        public static final String ERROR_STATUS = "error_status"; //错误码.
        public static final String ERROR_MESSAGE = "error_message"; //错误消息
        public static final String CONTENT_ID = "content_id";  //内容id
    }

    /**
     * 业务下载表信息,存储业务额外的信息
     */
    public static interface CourseDownloadImpl extends BaseColumns{
        public static final String COURSE_TAB_NAME = "t_course_download";

        public static final String DOWNLOAD_ID = "download_id";  //下载id,关联下载对象
        public static final String COURSE_ID = "course_id";
        public static final String COURSE_NAME = "course_name";
        public static final String CHAPTER_ID = "chapter_id";
        public static final String CHAPTER_NAME = "chapter_name";
    }
}